package ms.jasim.framework;

import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.preferences.IPreferencesService;

public class ConfigurationImpl implements IConfiguration {

	private IPreferencesService service;

	public ConfigurationImpl() {
		service = Platform.getPreferencesService();
	}
	
	@Override
	public String getString(String name, String defaultValue) {
		return service.getString("ms.jasim.model.editor", name, defaultValue, null);
	}

	
	@Override
	public boolean getBoolean(String name, boolean defaultValue) {
		return service.getBoolean("ms.jasim.model.editor", name, defaultValue, null);
	}

}
